﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;

namespace OnlineMealOrdering.Common
{
    public class Config
    {
        public static int UserAuthenticationExpirationMinutes
        {
            get
            {
                string expiration = ConfigurationManager.AppSettings["UserAuthenticationExpirationMinutes"];
                if (expiration == null)
                    throw new ApplicationException("在Web.config中找不到配置UserAuthenticationExpirationMinutes");
                return int.Parse(expiration);
            }
        }
    }
}